package com.wetao.lib_common.bean.response;

import com.google.gson.Gson;
import com.wetao.lib_common.base.Base2Response;

import java.io.Serializable;

/**
 * author: zhouyh
 * created on: 2021/11/23 1:49 下午
 * description:
 */
public class ReadPushFirstInfo extends Base2Response implements Serializable {


    /**
     * data : {"readPushId":"207","readPushTitle":"100字文档","pushTime":"2021-11-16 10:06:34","fileUrl":"https://newpage-test.oss-cn-hangzhou.aliyuncs.com/2021-11-16%2010%3A06%3A24/TV60kJlq6QnsRj1BTq9CTUhP9aYnXk31.docx","subjectName":"语文","readTime":null,"readStatus":3}
     */

    private DataBean data;

    public static ReadPushFirstInfo objectFromData(String str) {

        return new Gson().fromJson(str, ReadPushFirstInfo.class);
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Serializable {
        /**
         * readPushId : 207
         * readPushTitle : 100字文档
         * pushTime : 2021-11-16 10:06:34
         * fileUrl : https://newpage-test.oss-cn-hangzhou.aliyuncs.com/2021-11-16%2010%3A06%3A24/TV60kJlq6QnsRj1BTq9CTUhP9aYnXk31.docx
         * pdfUrl
         * subjectName : 语文
         * readTime : null
         * readStatus : 3
         */

        private Integer readPushId;
        private String readPushTitle;
        private String subjectName;
        private String fileUrl;
        private String pdfUrl;
        private Integer readTime;
        private Integer readStatus;
        private String pushTime;

        public static DataBean objectFromData(String str) {

            return new Gson().fromJson(str, DataBean.class);
        }

        public Integer getReadPushId() {
            return readPushId;
        }

        public void setReadPushId(Integer readPushId) {
            this.readPushId = readPushId;
        }

        public String getReadPushTitle() {
            return readPushTitle;
        }

        public void setReadPushTitle(String readPushTitle) {
            this.readPushTitle = readPushTitle;
        }

        public String getSubjectName() {
            return subjectName;
        }

        public void setSubjectName(String subjectName) {
            this.subjectName = subjectName;
        }

        public String getFileUrl() {
            return fileUrl;
        }

        public void setFileUrl(String fileUrl) {
            this.fileUrl = fileUrl;
        }

        public Integer getReadTime() {
            return readTime;
        }

        public void setReadTime(Integer readTime) {
            this.readTime = readTime;
        }

        public Integer getReadStatus() {
            return readStatus;
        }

        public void setReadStatus(Integer readStatus) {
            this.readStatus = readStatus;
        }

        public String getPushTime() {
            return pushTime;
        }

        public void setPushTime(String pushTime) {
            this.pushTime = pushTime;
        }

        public String getPdfUrl() {
            return pdfUrl;
        }

        public void setPdfUrl(String pdfUrl) {
            this.pdfUrl = pdfUrl;
        }
    }
}
